
	<div class="block">

<div id= 'content'>
	<h2>主页面相册的显示和修改</h2>
	<table class='contentTable' border="1">
			<tr>
		<td>id</td>
		<td>rid</td>
		<td>content</td>
		<td>thumbnail</td>
		<td>title</td>
		<td>detail</td>
		<td>img</td>
		</tr>
	<?php
	
	foreach($IndexGallerys as $IndexGallery){
	
	?>
	<tr>
		<td><?php echo $IndexGallery->id;?></td>
		<td><?php echo $IndexGallery->rid;?></td>
		<td><?php echo $IndexGallery->content;?></td>
		<td><?php echo $IndexGallery->thumbnail;?></td>
		<td><?php echo $IndexGallery->title;?></td>
		<td><?php echo $IndexGallery->detail;?></td>
		<td><img src="/images/thumbnail02.jpg" alt="" width="120px"></td>
		
		</tr>
	<?php
	
	}
	
	?>
	</table>
	
	
	
<br>
<br>
<br>
<div class="done" style="display:none;">
<b>操作成功</b>
<a href="/admin/?page=m">返回</a>
</div>
    <div class="form">
    	<b>添加新的目录</b>
        <form >
        	<input type="hidden" id='page' name="task" value="menu" />

    <div class="element">
        <label>rid</label>
 
        <input type="text" id="rid" name="task" class="text" value=<?php echo max($IndexGalleryRid)+1?> disabled/>
    </div>
    <div class="element">
        <label>url</label>
        <input type="text" id="url" name="task" class="text" />
    </div>
    <div class="element">
        <label>label</label>
        <input type="text" id="label" name="task" class="text" />
    </div>
    
    <div class="element">
        <label>detail</label>
        <textarea id="detail" name="task" class="text textarea" /></textarea>
    </div>
    <div class="element">
        <label>thumbnail Img</label>
        <input type="file" id="tImg" name="task">
      
    </div>
    <div class="element">
         <button type="button" id="submit">添加</button>
        <div class="loading"></div>
    </div>
    </form>
    </div>
</div>
<div class="clear"></div>
	</div>